export const isDate = (str: any) => {
  //获取字符串的后4位=Date则返回true
  const lastFourChars = str.slice(-4)
  if (lastFourChars !== 'Date') {
    return false
  }
  return true
}
export const formatDate = (str: any) => {
  //截取字符串的前10位
  return str.substring(0, 10)
}
